<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Wednus Darwin</title>
<script type='text/javascript' src='../../../wednus_compact.js'></script>
<script type='text/javascript'>
W.module('darwin');
</script>

<script type='text/javascript'>
// define an oracle
var oracle = new W.Oracle();
oracle.showClock(true);
// define world
var world = new W.World({
  cols: 10,
  rows: 10,
  delay: 6
});
world.showGrid(true);
oracle.add(world);

// define creatures
var creature = new W.Creature({
  act: 'walk',
  uwidth: 2,
  uheight: 2,
  speed: 2
});
world.add(creature);

// add skills
creature.add(new W.Skill({name: 'still', img: 'module/darwin/test/image/walk.gif',
  north: '0:0',
  east:  '48:0',
  south: '96:0',
  west:  '144:0'
}));
creature.add(new W.Skill({name: 'walk', img: 'module/darwin/test/image/walk.gif',
  north: '0:0,0:48,0:96',
  east:  '48:0,48:48,48:96',
  south: '96:0,96:48,96:96',
  west:  '144:0,144:48,144:96'
}));

//var scenario = 'walk,left,walk,right,walk,left,walk,right,still';
//var acts = 'walk,left,walk,right,walk,left,walk,right';
var acts = 'walk:1,left:0,walk:1';
creature.play(acts);
</script>
</head>
<body style='background:black'>
</body></html>